﻿@model ContactManagement.Models.EditUserModel
@{
    ViewBag.Title = Resources.PageTitles.EditUserRESX;
}
<h2>@Resources.PageTitles.EditRESX</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    <div class="@ViewBag.MessageType">
        @Html.ValidationSummary(true)
    </div>
    <fieldset>
        <legend>@Resources.PageTitles.EditUserRESX</legend>
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.UserTitle)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(model => model.UserTitle, Model.UserTitles, Resources.GlobalStrings.PleaseSelectItemsRESX)
                @Html.ValidationMessageFor(model => model.UserTitle)
            </div>
        </div>
        <div class="clear-all" />
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.Firstname)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Firstname)
                @Html.ValidationMessageFor(model => model.Firstname)
            </div>
        </div>
        <div class="clear-all" />
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.Lastname)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Lastname)
                @Html.ValidationMessageFor(model => model.Lastname)
            </div>
        </div>
        <div class="clear-all" />
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.Handy)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Handy)
                @Html.ValidationMessageFor(model => model.Handy)
            </div>
        </div>
        <div class="clear-all" />
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.Birthdate)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Birthdate)
                @Html.ValidationMessageFor(model => model.Birthdate)
            </div>
        </div>
        <div class="clear-all" />
        <p>
            <br />
            <input type="submit" value="@Resources.Navigation.SaveChangesRESX" />
        </p>
    </fieldset>
}
<div>
 @Html.ActionLink(Resources.Navigation.BackToUserDetailsRESX, EActionUser.Details.ToString(), EControllers.User.ToString(), new { id = CurrentSession.GetCurrentUser().ID }, null)
</div>
